<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<h1>
				<em><span class="marker"><span class="label">最新预约列表数据</span></span></em>
			</h1>
			<table class="table table-striped table-hover">
				<thead>
					<tr >
						<th>
							预约编号
						</th>
						<th>
							用户姓名
						</th>
						<th>
							用户地址
						</th>
						<th>
							用户电话
						</th>
						<th>
							产品名称
						</th>
						<th>
							预约状态
						</th>
						<th>
							预约时间
						</th>
						<th>
							操作
						</th>
					</tr>
				</thead>
				<tbody>
						<tr ng-repeat="item in wishList">
						<td>{{item.wishId}}</td>
						<td>{{item.user.username}}</td>
						<td>{{item.user.address}}</td>
						<td>{{item.user.mobile}}</td>
						<td>{{item.toy.toyName}}</td>
						<td>{{item.status|converwishstatus}}</td>
						<td>{{item.createtime.time|timestampToDate}}</td>
						<td>
					
								<button class="btn btn-small btn-primary" type="button"  ng-click="createorder(item.wishId);">建单</button>
							<button class="btn btn-small btn-danger" ng-disabled="item.status=='w'? true:false" data-toggle="modal" data-target="#expressModal" ng-click="setwishId(item.wishId);" >快递</button>
						</td>

						</tr>
				
				</tbody>
			</table>
				
			</div>
		</div>
	</div>
</div>
<!-- 模态框（Modal） -->
<div  class="modal fade" id="expressModal" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
               创建快递单
            </h4>
         </div>
         <div class="modal-body" id="expressdetail">
            这里面显示快递单的详情信息
         </div>
           <div class="form-group">
            	<label for="firstname" class="col-sm-2 control-label">快递公司</label>
      			<div class="">
         		<input type="text" class="form-control" id="express" ng-model='newcompany'
            	placeholder="请输入快递公司">
            	</div>
        </div>
         <div class="form-group">
            	<label for="firstname" class="col-sm-2 control-label">快递员</label>
      			<div class="">
         		<input type="text" class="form-control" id="express" ng-model='newcourier'
            	placeholder="请输入快递公司">
            	</div>
        </div>
         <div class="form-group">
            	<label for="firstname" class="col-sm-2 control-label">快递单号</label>
      			<div class="">
         		<input type="text" class="form-control" id="express" ng-model='newexcode'
            	placeholder="请输入快递单号">
            	</div>
        </div>
         <div class="form-group">
            	<label for="firstname" class="col-sm-2 control-label">快递手机</label>
      			<div class="">
         		<input type="text" class="form-control" id="express" ng-model='newexmobile'
            	placeholder="请输入快递手机">
            	</div>
        </div>


         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭
            </button>
            <button id="btnPrint" type="button" class="btn btn-primary" ng-click="createexpress();">
               录入快递信息
            </button>
             <button id="btnPrint" type="button" class="btn btn-primary" ng-click="print();">
               打印快递单
            </button>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>



 <script type="text/javascript">    
      
    </script>    
